// 模块还能嵌套
#[allow(dead_code)]
pub mod nested;
pub mod other_mod;

#[warn(dead_code)]
fn private_fun() {
    println!("private fun")
}
pub fn fun() {
    println!("pub fun")
}
// 公共的函数可以在当作用域访问私有函数
pub fn indirect_fun() {
    private_fun()
}
#[allow(unused, dead_code)]
fn access_nested_in_path_fun() {
    nested::in_path_fun();
    nested::super_fun();
    // nested::self_fun();
}

pub fn test3() {
    nested::super_fun();
    // 访问不到pub（self）哦
    //nested::self_fun();
}
